<%--
  Created by IntelliJ IDEA.
  User: owner
  Date: 2018-08-04
  Time: 22:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="../../include/back/BackHeader.jsp"%>
<%@include file="../../include/back/BackNavigator.jsp"%>
<title>编辑产品</title>

<div class="Back_productedit">
    <ol class="breadcrumb">
        <li><a href="admin_category_list">所有分类</a></li>
        <li><a href="admin_product_list?cid=${category.id}">${category.name}</a></li>
        <li>${product.name}</li>
        <li class="active">编辑产品</li>
    </ol>

    <div class="panel panel-default">
        <div class="panel-heading">编辑属性</div>
        <div class="panel-body">
            <form  action="admin_product_update" method="post" id="product_Nform" >
                <table class="editTable">
                    <tr>
                        <td>
                            <input type="hidden" name="product_id" value="${product.id}">
                        </td>
                    </tr>
                    <tr>
                        <td> <label for="product_Nname">产品名称</label></td>
                        <td> <input type="text" id="product_Nname"  name="product_Nname" value="${product.name}"></td>
                    </tr>
                    <tr>
                        <td> <label for="product_Nsubtitle">产品小标题</label></td>
                        <td> <input type="text" id="product_Nsubtitle"  name="product_Nsubtitle" value="${product.subTitle}"></td>
                    </tr>
                    <tr>
                        <td> <label for="product_Noprice">原价格</label></td>
                        <td> <input type="text" id="product_Noprice"  name="product_Noprice" value="${product.orignalPrice}"></td>
                    </tr>
                    <tr>
                        <td> <label for="product_Nnprice">优惠价格</label></td>
                        <td> <input type="text" id="product_Nnprice"  name="product_Nnprice" value="${product.promotePrice}"></td>
                    </tr>
                    <tr>
                        <td> <label for="product_Nstock">库存</label></td>
                        <td> <input type="text" id="product_Nstock"  name="product_Nstock" value="${product.stock}"></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <button class="btn btn-success" type="submit" id="product_editbutton">提交</button>
                        </td>
                    </tr>

                </table>
            </form>
        </div>
    </div>
</div>
<%@include file="../../include/back/BackFooter.jsp"%>
